home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_windowmaker.idb / usr / freeware / share / WindowMaker / menu.he.z / menu.he
Encoding:
Text File  |  1999-07-16  |  6.7 KB  |  197 lines

  1. /*
  2.  * Root Menu definition for WindowMaker
  3.  *
  4.  * Syntax is:
  5.  *
  6.  * <Title> <Command> <Parameters>
  7.  *
  8.  * <Title> is any string to be used as title. Must be enclosed with " if it
  9.  *     has spaces
  10.  *
  11.  * <Command> one of the valid commands: 
  12.  *    MENU - starts (sub)menu definition
  13.  *    OPEN_MENU - opens a menu from a file, pipe or directory(ies) contents
  14.  *            and eventually precede each with a command.
  15.  *    END  - end (sub)menu definition
  16.  *    WORKSPACE_MENU - adds a submenu for workspace operations
  17.  *    EXEC <program> - executes an external program
  18.  *    EXIT - exits the window manager
  19.  *    RESTART [<window manager>] - restarts WindowMaker or start another
  20.  *            window manager
  21.  *    REFRESH - refreshes the desktop
  22.  *    ARRANGE_ICONS - rearranges the icons on the workspace
  23.  *    SHUTDOWN - kills all clients (and close the X window session)
  24.  *    SHOW_ALL - unhides all windows on workspace
  25.  *    HIDE_OTHERS - hides all windows on the workspace, except the
  26.  *        focused one (or the last one that received focus)
  27.  *    SAVE_SESSION - saves the current state of the desktop, which include
  28.  *               all running applications, all their hints (geometry,
  29.  *               position on screen, workspace they live on, the dock
  30.  *               or clip from where they were launched, and
  31.  *               if minimized, shaded or hidden. Also saves the current
  32.  *               workspace the user is on. All will be restored on every
  33.  *               start of windowmaker until another SAVE_SESSION or
  34.  *               CLEAR_SESSION is used. If SaveSessionOnExit = Yes; in
  35.  *               WindowMaker domain file, then saving is automatically
  36.  *               done on every windowmaker exit, overwriting any
  37.  *               SAVE_SESSION or CLEAR_SESSION (see below).
  38.  *    CLEAR_SESSION - clears any previous saved session. This will not have
  39.  *               any effect if SaveSessionOnExit is True.
  40.  *
  41.  * OPEN_MENU syntax:
  42.  *   1. File menu handling.
  43.  *    // opens file.menu which must contain a valid menu file and inserts
  44.  *    // it in current position
  45.  *    OPEN_MENU file.menu
  46.  *   2. Pipe menu handling.
  47.  *    // opens command and uses it's stdout to construct menu.
  48.  *    // Command's output must be a valid menu description.
  49.  *    // The space between '|' and command itself is optional.
  50.  *    OPEN_MENU | command
  51.  *   3. Directory handling.
  52.  *    // Opens one or more directories and construct a menu with all
  53.  *    // the subdirectories and executable files in them sorted
  54.  *    // alphabetically.
  55.  *    OPEN_MENU /some/dir [/some/other/dir ...]
  56.  *   4. Directory handling with command.
  57.  *    // Opens one or more directories and construct menu with all
  58.  *    // subdirectories and readable files in them sorted alphabetically,
  59.  *    // preceding each of them with command.
  60.  *    OPEN_MENU /some/dir [/some/other/dir ...] WITH command -options
  61.  *
  62.  *
  63.  * <Parameters> is the program to execute.
  64.  *
  65.  * ** Options for command line in EXEC:
  66.  * %s - substitute with current selection
  67.  * %a(message) - opens a input box with the message and do substitution with
  68.  *        what you typed
  69.  * %w - substitute with XID for the current focused window
  70.  *
  71.  * You can override special characters (as % and ") with the \ character:
  72.  * ex: xterm -T "\"Hello World\""
  73.  *
  74.  * You can also use character escapes, like \n
  75.  *
  76.  * Each MENU statement must have one mathching END statement at the end.
  77.  *
  78.  * Example:
  79.  *
  80.  * "Test" MENU
  81.  *    "XTerm" EXEC xterm
  82.  *        // creates a submenu with the contents of /usr/openwin/bin
  83.  *    "XView apps" OPEN_MENU "/usr/openwin/bin"
  84.  *        // some X11 apps in different directories
  85.  *    "X11 apps" OPEN_MENU /usr/X11/bin $HOME/bin/X11
  86.  *        // set some background images
  87.  *    "Background" OPEN_MENU $HOME/images /usr/share/images WITH wmsetbg -u -t
  88.  *        // inserts the style.menu in this entry
  89.  *    "Style" OPEN_MENU style.menu
  90.  * "Test" END
  91.  */
  92.  
  93. #include "wmmacros"
  94.  
  95. "φΘεσ∙Θ" MENU
  96.     "≥πΘε" MENU
  97.         "Info Panel..." INFO_PANEL
  98.         "Legal" LEGAL_PANEL
  99.         "System Load" EXEC xosview || xload
  100.         "Process List" EXEC xterm -e top
  101.         "Manual Browser" EXEC xman
  102.     "≥πΘε" END
  103.     "XTerm" EXEC xterm -sb 
  104.     "Rxvt" EXEC rxvt -bg black -fg white -fn fixed
  105.     "Σπσß≥ Θßτ°ε" WORKSPACE_MENU
  106.     "φΘεσ∙Θ" MENU
  107.         "Σ≈Θ⌠°Γ" MENU
  108.             "Gimp" EXEC gimp >/dev/null
  109.             "XV" EXEC xv
  110.             "XPaint" EXEC xpaint
  111.             "XFig" EXEC xfig
  112.         "Σ≈Θ⌠°Γ" END
  113.         "X File Manager" EXEC xfm
  114.         "OffiX Files" EXEC files
  115.         "LyX" EXEC lyx
  116.         "⌠ΘΘ≈±Φ≡" EXEC netscape 
  117.           "Ghostview" EXEC ghostview %a(Enter file to view)
  118.         "Acrobat" EXEC /usr/local/Acrobat3/bin/acroread %a(Enter PDF to view)
  119.           "TkDesk" EXEC tkdesk
  120.     "φΘεσ∙Θ" END
  121.     "φΘδ°σ≥" MENU
  122.         "XFte" EXEC xfte
  123.         "XEmacs" EXEC xemacs || emacs
  124.         "XJed" EXEC xjed 
  125.         "NEdit" EXEC nedit
  126.         "Xedit" EXEC xedit
  127.         "VI" EXEC xterm -e vi
  128.     "φΘδ°σ≥" END
  129.     "Θ∞∞δ" MENU
  130.         "Xmcd" EXEC xmcd 2> /dev/null
  131.         "Xplaycd" EXEC xplaycd
  132.         "Xmixer" EXEC xmixer
  133.     "Θ∞∞δ" END
  134.     "φΘ∞δ" MENU
  135.         "Calculator" EXEC xcalc
  136.         "Window Properties" EXEC xprop | xmessage -center -title 'xprop' -file -
  137.         "Font Chooser" EXEC xfontsel
  138.         "Terminal Emulator" EXEC xminicom
  139.         "Magnify" EXEC xmag
  140.         "Colormap" EXEC xcmap
  141.         "XKill" EXEC xkill
  142.         "ASClock" EXEC asclock -shape
  143.         "Clipboard" EXEC xclipboard
  144.     "φΘ∞δ" END
  145.  
  146.     "Σ°Θτß" MENU
  147.         "≈·≥Σ" EXEC echo '%s' | wxcopy
  148.         "...∞ °ασπΣ τ∞∙" EXEC xterm -name mail -T "Pine" -e pine %s
  149.         "Navigate" EXEC netscape %s
  150.         "Search in Manual" EXEC MANUAL_SEARCH(%s)
  151.     "Σ°Θτß" END
  152.  
  153.     "Σπσß≥ ßτ°ε" MENU
  154.         "φΘ°τα αßτΣ" HIDE_OTHERS
  155.         "φ∞σδ Σα°Σ" SHOW_ALL
  156.         "φΘ≡σ≈ΘΘα °π±" ARRANGE_ICONS
  157.         "∩≡≥°" REFRESH
  158.         "∞≥≡" EXEC xlock -allowroot -usefirst
  159.         "Save Session" SAVE_SESSION
  160.         "Clear Saved Session" CLEAR_SESSION
  161.     "Σπσß≥ ßτ°ε" END
  162.  
  163.     "Σα°ε" MENU
  164.         "Themes" OPEN_MENU -noext  THEMES_DIR $HOME/GNUstep/Library/WindowMaker/Themes WITH setstyle
  165.         "·σ≡σ≡Γ±" OPEN_MENU -noext STYLES_DIR $HOME/GNUstep/Library/WindowMaker/Styles WITH setstyle
  166.         "φΘ≡σ≈ΘΘα Φ±" OPEN_MENU -noext ICON_SETS_DIR $HOME/GNUstep/Library/WindowMaker/IconSets WITH seticons
  167.         "≥≈°" MENU
  168.             "Solid" MENU
  169.                             "°στ∙" WS_BACK '(solid, black)'
  170.                             "∞στδ"  WS_BACK '(solid, "#505075")'
  171.                 "Indigo" WS_BACK '(solid, "#243e6c")'
  172.                 "≈σε≥ ∞στδ" WS_BACK '(solid, "#180090")'
  173.                             "∞σΓ±" WS_BACK '(solid, "#554466")'
  174.                             "ΣΦΘτ"  WS_BACK '(solid, "wheat4")'
  175.                             "°σ⌠α °στ∙"  WS_BACK '(solid, "#333340")'
  176.                             "∩ΘΘ" WS_BACK '(solid, "#400020")'
  177.             "Solid" END
  178.             "Gradient" MENU
  179.                 "Flag" WS_BACK '(vdgradient, blue, white, blue)'
  180.                 "Sky" WS_BACK '(vgradient, blue4, white)'
  181.             "Gradient" END
  182.             "Images" OPEN_MENU -noext  BACKGROUNDS_DIR $HOME/GNUstep/Library/WindowMaker/Backgrounds WITH wmsetbg -u -t
  183.         "≥≈°" END
  184.         "Save Theme" EXEC getstyle -t $HOME/GNUstep/Library/WindowMaker/Themes/"%a(Theme name)"
  185.         "Save IconSet" EXEC geticonset $HOME/GNUstep/Library/WindowMaker/IconSets/"%a(IconSet name)"
  186.     "Σα°ε" END
  187.  
  188.     "ΣαΘ÷Θ"    MENU
  189.         "∞στ·Θα" RESTART
  190.         "AfterStep∞ °σß≥ " RESTART afterstep
  191.         "...α÷"  EXIT
  192.         "...∞σδΣ °σΓ±σ α÷" SHUTDOWN
  193.     "ΣαΘ÷Θ" END
  194. "φΘεσ∙Θ" END
  195.  
  196.  
  197.